<%@page import="helpers.UrlHelper"%>
<%@page import="models.Genre"%>
<%@page import="models.FeedType"%>
<%@page import="java.util.ArrayList"%>
<%@page import="helpers.ItuneXMLUrlHelper"%>
<%
ItuneXMLUrlHelper ituneUrlHepler = new ItuneXMLUrlHelper();
ArrayList<Genre> genres = ituneUrlHepler.getGenres();
ArrayList<String> limits = ituneUrlHepler.getLimits();
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
	
	<div class="right-pane">
    			<div style="height: 52px;"></div>
    			<div class="block style1">
	    			<script type="text/javascript"><!--
					google_ad_client = "ca-pub-4975603569119809";
					/* 200x200 */
					google_ad_slot = "2288453523";
					google_ad_width = 200;
					google_ad_height = 200;
					//-->
					</script>
					<script type="text/javascript"
					src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
					</script>
    			</div>
    			<!-- 4 - style1 -->
    			<div class="block style1">
    				<div class="head-text">
    					<span>Categories</span>
    					<span style="color: #82ABDD">Links</span>
    				</div>
    				<div class="items">
    					<% 
    					String even = "";
    					for (int i = 0; i < genres.size(); i++) { 
    						even =(int) i%2==0 ? "even" : "";
    					%>
    					<div class="item <%=even%>"><a href="/home?<%=UrlHelper.createUrl(genres.get(i).getId(), "genre", request)%>" alt="<%=genres.get(i).getName()%>"><%=genres.get(i).getName()%></a></div>
    					<div class="seperator">&nbsp;</div>
    					<% } %>
    				</div>
    			</div>
    			<!-- 4 - end style1 -->
    			
    			<div class="block style1">
	    			<script type="text/javascript"><!--
					google_ad_client = "ca-pub-4975603569119809";
					/* 200x200 */
					google_ad_slot = "2288453523";
					google_ad_width = 200;
					google_ad_height = 200;
					//-->
					</script>
					<script type="text/javascript"
					src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
					</script>
    			</div>
    			
    			<!-- 4 - style2 -->
    			<div class="style2">
    				<div class="head-text">
    					<span>Top</span>
    					<span style="color: #82ABDD">Apps</span>
    				</div>
    				
    				<div class="items">
    					<% 
    						for (int i = 0; i < limits.size(); i++) { 
    							even =(int) i%2==1 ? "even" : "";
    					%>
    					<div class="item <%=even%>">
    						<div class="link"><a href="/home?<%=UrlHelper.createUrl(limits.get(i), "limit", request)%>"><%=limits.get(i)%> apps</a></div>
    					</div>
    					<%} %>
    				</div>
    			</div>
    			<!-- 4 - end style2 -->
    		</div>